const Ajax = window.ajaxbusinessAssets;
const pAjax=window.ajaxFinancialplan
export const categoryCreate = (params) => Ajax.request(`/v1/business/category/create`, 'post', params, {
  showLoading: true
});
export const categoryDelete = (params) => Ajax.request(`/v1/business/category/delete`, 'post', params, {
  showLoading: true
});
export const categoryDetail = (params) => Ajax.request(`/v1/business/category/detail`, 'post', params, {
  showLoading: true
});
export const categoryTree = (params) => Ajax.request(`/v1/business/category/tree`, 'post', params, {
  showLoading: true
});
export const categoryUpdate = (params) => Ajax.request(`/v1/business/category/update`, 'post', params, {
  showLoading: true
});

//事项配置
export const businessConstant = (params) => pAjax.request(`/v1/constant`, 'get', '', {
  showLoading: true
});
export const businessTree = (params) => pAjax.request(`/v1/business/charge/item/tree`, 'post', params, {
  showLoading: true
});
export const businessCreate = (params) => pAjax.request(`/v1/business/charge/item/create`, 'post', params, {
  showLoading: true
});
export const businessUpdate = (params) => pAjax.request(`/v1/business/charge/item/update`, 'post', params, {
  showLoading: true
});
export const businessDelete = (params) => pAjax.request(`/v1/business/charge/item/delete`, 'post', params, {
  showLoading: true
});
export const businessDetail = (params) => pAjax.request(`/v1/basic/charge/charge/detail`, 'post', params, {
  showLoading: true
});
//移动事项的父级list
export const apiChargeItemList = (params) => pAjax.request(`/v1/business/charge/item/list`, 'post', params, {
  showLoading: true
});
//移动事项
export const apiChargeItemMove = (params) => pAjax.request(`/v1/business/charge/item/move`, 'post', params, {
  showLoading: true
});